//
//@File    :	practice_2.7.cpp
//@Time    :	2021/08/18 20:47:08
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	输入小时和分钟,显示时间
//

#include <iostream>

using namespace std;
void show(int hour,int minute);//函数声明
int main()
{
    int hour,minute;
    show(hour,minute);
    system("pause");
    return 0;
}
void show(int hour,int minute)//函数实现
{
    
    cout<<"Enter the number of hours: ";
    cin>>hour;
    cout<<"Enter the number of minutes: ";
    cin>>minute;
    cout<<"Time: "<<hour<<":"<<minute<<endl;
}